#include<stdio.h>
#include<stdlib.h>
#include<signal.h>
#include<unistd.h>
static volatile int loop=1;
static void alrm_handler(int a)
{
	loop=0;	
}

int main()
{
	int64_t count=0;
	signal(SIGALRM,alrm_handler);
	alarm(5);
	while(loop)
		count++;
	printf("%ld\n",count);

	return 0;
}
